package com.alibaba.weex.module;

import com.nat.device_network.HLModuleResultListener;
import com.nat.device_network.HLWXNetworkModule;
import com.taobao.weex.annotation.JSMethod;
import com.taobao.weex.bridge.JSCallback;
import com.taobao.weex.common.WXModule;


/**
 * 网络模块
 *
 * @version 1.0
 * @since 2017/7/2
 */
public class DeviceNetworkModule extends WXModule {

    @JSMethod
    public void status(final JSCallback jsCallback) {
        HLWXNetworkModule.getInstance(mWXSDKInstance.getContext()).status(new HLModuleResultListener() {
            @Override
            public void onResult(Object o) {
                jsCallback.invoke(o);
            }
        });
    }
}
